package com.example.demo;

import java.util.concurrent.locks.Lock;

public class LockData {

    private final Lock lock;

    private final Long startTime;

    private final Long timeOut;

    private boolean finished =false;

    private int count = 0;


    public LockData(Lock lock, Long startTime, Long timeOut) {
        this.lock = lock;
        this.startTime = startTime;
        this.timeOut = timeOut;
    }


    public Lock getLock() {
        return lock;
    }

    public Long getStartTime() {
        return startTime;
    }

    public Long getTimeOut() {
        return timeOut;
    }

    public boolean isFinished() {
        return finished;
    }

    public void setFinished(boolean finished) {
        this.finished = finished;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
